﻿using System.Windows.Forms;

namespace VolgaTransTelecomClient
{
    internal partial class LoginForm : Form
    {
        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="LoginForm"/> class.
        /// </summary>
        internal LoginForm()
        {
            InitializeComponent();
        }
        #endregion

        #region Properteis
        /// <summary>
        /// Gets the name of the user.
        /// </summary>
        /// <value>The name of the user.</value>
        internal string UserName
        {
            get
            {
                return _userName.Text;
            }
            set
            {
                _userName.Text = value;
            }
        }

        /// <summary>
        /// Gets the password.
        /// </summary>
        /// <value>The password.</value>
        internal string Password
        {
            get
            {
                return _password.Text;
            }
            set
            {
                _password.Text = value;
            }
        }

        /// <summary>
        /// Gets a value indicating whether 'Remember me' flag is checked.
        /// </summary>
        /// <value><c>true</c> if 'Remember me' flag is checked; otherwise, <c>false</c>.</value>
        internal bool RememberMeChecked
        {
            get
            {
                return _rememberAnswer.Checked;
            }
        }
        #endregion
    }
}
